#include <main.h>


//MASTER

void main()
{

	while(TRUE)
	{	
	
	   i2c_start();			//sends a START condition on the I2C bus
	   i2c_write(0x10);     	//sends the slave device address
	   i2c_write(input_a());     	//reads PORT A input and sends to I2C device				
	   i2c_stop();			//sends a STOP condition to end the transmission
	   delay_ms(100);		//waits 100ms before completing

	}

}
